package com.cory.module.job.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cory.module.job.domain.entity.JobAsync;

/**
 *  Mapper 接口
 *
 * @author xc
 * @since 2023-05-09
 */
public interface JobAsyncMapper extends BaseMapper<JobAsync> {

    @Select("select * from job_async where state = -1 order by id limit #{size}")
    List<JobAsync> runList(@Param("size")int size);
    
}
